import type { Analysis } from './model';

import { requestClient } from '#/api/request';
// 获取数据概览
export function getCountStatistics() {
  return requestClient.get<Analysis>('/iot/home/countStatistics');
}
// 注册设备数统计
export function createDeviceStatistics(params: {
  endDate: string;
  startDate: string;
}) {
  return requestClient.get('/iot/home/createDeviceStatistics', { params });
}
// 在线设备数统计
export function onlineStatistics(params: {
  endDate: string;
  startDate: string;
}) {
  return requestClient.get('/iot/home/onlineStatistics', { params });
}
